package svc.elib.linkpred;

import svc.elib.db.Author;
import svc.elib.socnet.Net;

public class PrefAttachMetric implements LPMetric  {

	@Override
	public double score(Author a, Author b, Net n) {
		int aDeg = n.getGraph().degree(a);
		int bDeg = n.getGraph().degree(b);
		return aDeg * bDeg;
	}
}
